import request from '@/utils/request'

export function listScenario(query) {
  return request({
    url: '/sceneHead/list',
    method: 'get',
    params: query
  })
}

export function createScenario(data) {
  return request({
    url: '/sceneHead/create',
    method: 'post',
    data
  })
}

export function readsceneHead(data) {
  return request({
    url: '/sceneHead/get/' + data.fsceneno,
    method: 'get'
  })
}

export function updateScenario(data) {
  return request({
    url: '/sceneHead/update',
    method: 'post',
    data
  })
}

export function deleteScenario(data) {
  return request({
    url: '/sceneHead/delete/' + data,
    method: 'delete'
  })
}
